-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter connections list on source or destination item pages #21027
Filter connections list on source or destination item pages #21027
Conversation
…leans up some excess API calls.
…ation-list-item-pages
…ation-list-item-pages
…ation-list-item-pages
…nation button has the right data available.
…ation-list-item-pages
…ation-list-item-pages
…connections-on-source-and-destination-list-item-pages
…ation-list-item-pages
…ation-list-item-pages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Had one suggested about comments but not blocking.
); | ||
|
||
const sourceDropdownOptions: DropdownMenuOptionType[] = useMemo( | ||
// We load all sources so the add source button has a pre-filled list of options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// We load all sources so the add source button has a pre-filled list of options. | |
// We load all configured sources so the add source button has a pre-filled list of options. |
@@ -52,23 +47,20 @@ const SourceItemPage: React.FC = () => { | |||
{ label: source.name }, | |||
]; | |||
|
|||
const connectionsWithSource = connections.filter(({ source: { sourceId } }) => sourceId === source.sourceId); | |||
|
|||
// We load all destinations so the add destination button has a pre-filled list of options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// We load all destinations so the add destination button has a pre-filled list of options. | |
// We load all configured destinations so the add destination button has a pre-filled list of options. |
Resolves #21025
What
Adds filtering to the source and destination item pages, as well as cleans up some excess API calls.
How
The source or destination ID is now passed into the connections list call on the source and destination item pages.